package org.hgf.testrabbitmq.utils.enums;

/**
 * 交换机类型枚举
 *
 * @author 何国发
 * @version 1.0.0
 * @date 2022/9/7 15:10
 */
public enum ExchangeTypeEnum {

    /**
     * DirectExchange
     */
    DIRECT("0", "直接交换机"),

    /**
     * FanoutExchange
     */
    FANOUT("1", "扇出交换机"),

    /**
     * TopicExchange
     */
    TOPIC("2", "主题交换机"),

    /**
     * HeadersExchange
     */
    HEADERS("3", "头部交换机");

    /**
     * 代码
     */
    private String code;

    /**
     * 备注
     */
    private String desc;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    ExchangeTypeEnum()
    {

    }

    ExchangeTypeEnum(String code, String desc)
    {
        this.code = code;
        this.desc = desc;
    }

}
